﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using NUnit.Framework;
using XcoAppSpaces.Core;
//using Microsoft.Practices.Unity;
using XcoAppSpaces.Contracts.Transport;
using XcoAppSpaces.Transport.Sockets;

namespace test.XcoAppSpaces.Core
{
	[TestFixture]
	public class testServiceConfiguration
	{

		/*[Test]
		public void Test()
		{
			//Load service configuration into unity container
			UnityContainer container = new UnityContainer();
			ServiceConfiguration.LoadServiceConfiguration(container);

			//See if configuration has been loaded: Mapping for IXcoTransportService must be defined
			IXcoTransportService commService = container.Resolve<IXcoTransportService>();
			Assert.IsNotNull(commService);
			
			//Test overwriting in app/dll config: Settings in dll config should overwrite settings in app config!
			string appConfigTestStr = container.Resolve<string>("TestStringAppConfig");
			string dllConfigTestStr = container.Resolve<string>("TestStringDllConfig");
			Assert.AreEqual("app.config", appConfigTestStr, "TestStringAppConfig wrong!");
			Assert.AreEqual("dll.config", dllConfigTestStr, "TestStringDllConfig wrong!");
			//Console.WriteLine("MyInstance1 = " + test);
			Console.WriteLine("Finished");
		}*/
	}
}
